package com.info.zhiduoduo.common.configs;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Component
@ConfigurationProperties(prefix = "dingdingnotice")
@PropertySource(value = {"classpath:common-${spring.profiles.active}.properties"})
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class DingdingNoticeConfig {

	private String apiUrl;
	/** 普通群token */
	private String normalToken;

	private boolean exceptionPrinterEnable;
	private String exceptionPrinterWebhook;
	private String exceptionPrinterSecret;

}
